﻿ALTER TABLE [dbo].[Service]
    ADD CONSTRAINT [FK_Service_Device] FOREIGN KEY ([ParentDeviceId]) REFERENCES [dbo].[Device] ([Id]) ON DELETE CASCADE ON UPDATE CASCADE;

